home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 38
/
038.d81
/
what goes here
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
3KB
|
97 lines
5 gosub60100:clr
10 dimd$(23),a(4),b(25),c(25),g(25):printchr$(8)chr$(142)
20 d$(0)=chr$(19):forx=1to23:d$(x)=d$(x-1)+chr$(17):next
30 restore:print"[147] what goes here?"
40 print" by penny degroff"
70 forx=54272to54295:pokex,0:next:poke54296,15
80 poke54277,5:poke54284,10
90 readh,l:ifh=0then130
100 poke54273,h:poke54280,h:poke54272,l:poke54279,l
110 poke54276,17:poke54283,33:ford=1to200:next
120 poke54276,16:poke54283,32:goto90
130 forx=54272to54284:pokex,0:next
140 forx=1to4:reada(x):next:b(1)=1471:c(1)=1488
150 forx=2to5:b(x)=b(x-1)+2:c(x)=c(x-1)+2:next
160 forx=6to25:b(x)=b(x-5)+80:c(x)=c(x-5)+80:next
170 poke53280,6:poke53281,14:poke646,6
180 printd$(12)tab(5)"select difficulty level(1-5)"
185 print" press q to quit."
190 getz$:ifz$>"0"andz$<"6"thene=val(z$):goto200
193 ifz$="q"orz$="[209]"thengosub60000:goto185
198 goto190
200 print"[145][145][145]";:fora=1to3:print" ":next
210 printd$(11)tab(11)"match characters"
220 printtab(11)"<1> at random":printtab(11)"<2> in order"
230 getz$:f=val(z$):iff<1orf>2then230
240 iff=1thenforx=1to25:g(x)=0:next
250 print"[145][145][145]";:fora=1to3:print" ":next
260 printd$(10)tab(6)"[176][192][178][192][178][192][178][192][178][192][174] [176][192][178][192][178][192][178][192][178][192][174]"
270 printtab(6)"[221] [221] [221] [221] [221] [221] [221] [221] [221] [221] [221] [221]":ife=1then300
280 forx=1toe-1:printtab(6)"[171][192][219][192][219][192][219][192][219][192][179] [171][192][219][192][219][192][219][192][219][192][179]"
290 printtab(6)"[221] [221] [221] [221] [221] [221] [221] [221] [221] [221] [221] [221]":next
300 printtab(6)"[173][192][177][192][177][192][177][192][177][192][189] [173][192][177][192][177][192][177][192][177][192][189]"
310 forx=1toe*5:pokeb(x)+54272,1:pokeb(x),a(int(rnd(0)*4)+1):next:ti$="000000"
312 print:print
315 printtab(12)"[145]time remaining:"15-val(ti$)"[157] "
320 ifti$<>"000015"then315
330 forx=1toe*5:pokeb(x)+54272,14:next
340 printd$(5)tab(11)"[176][192][192][192][178][192][192][192][178][192][192][192][178][192][192][192][174]"
350 printtab(11)"[221]1-o[221]2-x[221]3-[214][221]4-[215][221]"
360 printtab(11)"[173][192][192][192][177][192][192][192][177][192][192][192][177][192][192][192][189]"
370 poke646,13:s=0:printd$(3)tab(9)"characters matched: 0":i=0
375 print"";:fora=1to(e*3)+11-(e-1):print"";:next
378 print" press q to quit. "
380 i=i+1:ifi>e*5then560
390 iff=2then420
400 r=int(rnd(0)*e*5)+1:ifg(r)=1then400
410 g(r)=1:pokec(r),63:pokec(r)+54272,1:goto430
420 pokec(i),63:pokec(i)+54272,1
430 getz$:ifz$>"0"andz$<"5"then440
433 ifz$="q"thengosub60060:ifnot(ok)then30
438 goto430
440 j=val(z$):iff=1then480
450 pokec(i),a(j):pokec(i)+54272,1:pokeb(i)+54272,1
460 ifpeek(b(i))=peek(c(i))then520
470 goto500
480 pokec(r),a(j):pokec(r)+54272,1:pokeb(r)+54272,1
490 ifpeek(b(r))=peek(c(r))then520
500 poke54277,45:poke54272,20:poke54273,5:fort=1to3:poke54276,33
510 ford=1to150:next:poke54276,32:ford=1to30:next:next:goto550
520 poke54277,15:poke54272,70:poke54273,100:fort=1to3:poke54276,33
530 ford=1to75:next:poke54276,32:ford=1to20:next:next
540 s=s+1:printd$(3)tab(28)""s
550 ford=1to1500:next:goto380
560 poke646,7:printd$(23)tab(8)"game over....press space"
570 getz$:ifz$<>" "then570
580 goto30
600 data 16,195,21,31,18,209,22,96,28,49,25,30,31,165,37,162,33,135,0,0
610 data 15,24,86,87
60000 print"[145] are you sure you want to quit? (y/n)"
60010 a=peek(203):ifa<>25anda<>39then60010
60020 ifa=39thenprint"[145] [145]":return
60030 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
60040 ifer<>63thenend
60050 load"hello connect",8
60060 print"";:fora=1to(e*3)+11-(e-1):print"";:next
60070 print" are you sure you want to quit? (y/n)"
60080 a=peek(203):ifa<>25anda<>39then60080
60090 ok=-1:ifa=25thenok=.
60095 print"[145] press q to quit. ":return
60100 poke53280,14:poke53281,14
60110 printchr$(142)"[147][213][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][201]";
60120 fora=1to23:print"[221]"spc(38)"[221]";:next
60130 print"[202][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][203][157][148][192]"
60140 fora=217to242:pokea,peek(a)or128:next
60150 print" loadstar presents:"
60160 print" "
60170 print" what goes here? "
60180 print" "
60190 print" by penny degroff "
60200 print" "
60210 print" copyright 1987 "
60220 print" "
60230 print" "
60240 print" press space to continue"
60250 ifpeek(203)<>60then60250
60260 return